<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Spring Boot Test</title>
</head>
<body>
    <table>
        <thead>
            <tr>
                <th>ID</th>
                <th>公司编码</th>
                <th>公司名称</th>
                <th>是否有效</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="company:${companies}">
                <td th:text="${company.companyId}"></td>
                <td th:text="${company.companyCode}"></td>
                <td th:text="${company.companyName}"></td>
                <td th:text="${company.isAvailable}"></td>
            </tr>
        </tbody>
    </table>
</body>
</html>